package com.luych.toolbox.data.service.entity;

import com.luych.toolbox.common.enums.DataUpgradeStatus;
import com.luych.toolbox.common.enums.DataUpgradeType;
import com.luych.toolbox.common.service.base.BaseEntity;

import javax.persistence.*;
import java.util.Date;

@Entity
@Table(name = "data_upgrade")
public class DataUpgrade extends BaseEntity {

    @Column(name = "data_project_id")
    private String dataProjectId;
    @Column(name = "name")
    private String name;
    @Column(name = "type")
    @Enumerated(EnumType.STRING)
    private DataUpgradeType type;
    @Column(name = "status")
    @Enumerated(EnumType.STRING)
    private DataUpgradeStatus status;
    @Column(name = "owner_id")
    private String ownerId;
    @Column(name = "start_date")
    private Date startDate;
    @Column(name = "complete_date")
    private Date completeDate;

    public String getDataProjectId() {
        return dataProjectId;
    }

    public void setDataProjectId(String dataProjectId) {
        this.dataProjectId = dataProjectId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public DataUpgradeType getType() {
        return type;
    }

    public void setType(DataUpgradeType type) {
        this.type = type;
    }

    public DataUpgradeStatus getStatus() {
        return status;
    }

    public void setStatus(DataUpgradeStatus status) {
        this.status = status;
    }

    public String getOwnerId() {
        return ownerId;
    }

    public void setOwnerId(String ownerId) {
        this.ownerId = ownerId;
    }

    public Date getStartDate() {
        return startDate;
    }

    public void setStartDate(Date startDate) {
        this.startDate = startDate;
    }

    public Date getCompleteDate() {
        return completeDate;
    }

    public void setCompleteDate(Date completeDate) {
        this.completeDate = completeDate;
    }
}